package com.itheima.common;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;
/**
 * @Author: yangshuai
 * @Desc: 标准结果
 * @Date: 2022-06-5 13:59:59
 */
@AllArgsConstructor
@Data
public class Result implements Serializable {
    /**
     * 状态码
     */
    private Integer code;
    /**
     * 消息提示
     */
    private String msg;
    /**
     * 数据结果
     */
    private Object data;
	public Result(){}
    public Result(Integer code,String msg){
        this.code=code;
        this.msg=msg;
    }

}
